package com.qaml.mes.device.api;


import com.earth.page.PageResponse;
import com.qaml.mes.device.dto.eqp.CheckUpkeepInfoDTO;
import com.qaml.mes.device.dto.eqp.CheckUpkeepInfoListDTO;
import com.qaml.mes.device.vo.eqp.CheckUpkeepInfoVO;
import org.apache.commons.io.input.BOMInputStream;

/**
 * <p>
 * 检保信息表 服务类
 * </p>
 *
 * @author leikai
 * @since 2024-02-27
 */
public interface CheckUpkeepInfoService {

    /**
     * 编辑或修改
     *
     * @param checkUpkeepInfoDTO
     */
    void saveOrUpdate(CheckUpkeepInfoDTO checkUpkeepInfoDTO);

    /**
     * 根据checkUpkeepId删除
     *
     * @param checkUpkeepId
     */
    Boolean deleteByCheckUpkeepId(String checkUpkeepId);


    /**
     * 根据检保项目编号查询详情
     *
     * @param checkUpkeepId
     * @return
     */
    CheckUpkeepInfoVO getByCheckUpkeepId(String checkUpkeepId);

    /**
     * 列表查询
     *
     * @param checkUpkeepInfoListDTO
     * @return
     */

    PageResponse<CheckUpkeepInfoVO> getCheckUpkeepInfoVOList(CheckUpkeepInfoListDTO checkUpkeepInfoListDTO);

    /**
     * 根据设备id修改检保项目状态
     *
     * @param eqpId
     */

    void saveStatus(String eqpId);

    /**
     * 修改检保项目状态
     *
     * @param eqpId
     */
    void updateStatus(String eqpId);

    /**
     * 启用检保项目
     *
     * @param id
     */
    void enableEqp(String id);

    /**
     * 关闭检保项目
     *
     * @param id
     */
    void disableEqp(String id);


}
